package org.xteam.camllight;

public class Block {
	
	private int tag;
	private Object[] fields;

	public Block(int tag, int size) {
		this.tag = tag;
		this.fields = new Object[size];
	}
	
	public int tag() {
		return tag;
	}
	
	public void setTag(int tag) {
		this.tag = tag;
	}

	public int size() {
		return fields.length;
	}

	public Object field(int i) {
		return fields[i];
	}

	public void setField(int i, Object value) {
		this.fields[i] = value;
	}
	
	@Override
	public String toString() {
		return "Block(" + tag + ")";
	}

}
